/**
 * 删除
 */
function del(layer,ajax,url,obj){
    layer.confirm('确定删除该记录吗？', function(index){
        var param = new Object();
        param.id = obj.data.id;
        ajax.post(url,param,function(data) {
            if(data.code == 10000){
                layer.msg('删除成功！',{
                    icon: 1,
                    time: 1000
                },function(){
                    window.location.reload()
                });
            }else{
                layer.msg(data.msg,{
                    icon: 2,
                    time: 1000
                });
            }
        });
    });
}

/**
 * 搜索
 */
function search(layer,table,ajax,url,obj){

}